package com.yuanchu.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.goods.dto.GoodsServiceDto;
import com.yuanchu.goods.entity.YoshopGoodsServiceEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品服务与承诺记录表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 02:17:43
 */
public interface YoshopGoodsServiceService extends IService<YoshopGoodsServiceEntity> {

    PageUtils queryGoodsService(Map<String, Object> params);

    /**
     * 商品服务与承诺记录表
     * @param goodsService
     * @param storeId
     */
    void addGoodsService(GoodsServiceDto goodsService, int storeId);

    /**
     * 删除商品服务表
     *
     * @param serviceId
     * @param storeId
     */
    void deleteGoodsServiceById(Integer serviceId, int storeId);

    /**
     * 修改商品服务与承诺记录表
     * @param goodsService
     * @param storeId
     */
    void editGoodsServiceById(GoodsServiceDto goodsService, int storeId);

    List<YoshopGoodsServiceEntity> queryGoodsAll();

    boolean updateGoodsServiceState(GoodsServiceDto goodsService);

    /**
     * 根据商品id查询服务与承诺记录表
     * @param goodsId
     * @return
     */
    List<YoshopGoodsServiceEntity> queryGoodsServiceByGoods(Integer goodsId);

    /**
     * 商品服务与承诺记录表
     * @param params
     * @return
     */

}

